package com.xuehu.cloud.service;

import com.xuehu.cloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author guoweia@cslc.com.cn
 * @createTime 2020/11/30 19:46
 * @description
 */
@Component
@FeignClient(value = "XUEHU-PAYMENT-SERVICE")
public interface PaymentFeignService {

    @GetMapping("/pay/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id);

    @GetMapping("/pay/get/timeout")
    public String queryTimeout();
}
